package com.example.demo.controller;

import com.example.demo.dto.UserLoginDto;
import com.example.demo.service.UserService;
import com.example.demo.model.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/userLogin")
@AllArgsConstructor
public class UserLoginController {

    private UserService userService;

    @PostMapping
    public Result login(@RequestBody UserLoginDto userLoginDto) {
        return userService.login(userLoginDto);
    }
}
